
import request from '@/utils/request.js'

export default {
	getUserRoleByFileId(fileId) {
		return request({
			url: `/file/api/getUserRole`,
			data: {
				fileId: fileId
			}
		})
	},
	deleteUserFileRoleByFileIdList(roleIdList) {
		// 构建请求参数
		const roleIdsStr = roleIdList.join(',');
		console.log("roleIdsStr----->", roleIdsStr)
		return request({
			url: `/file/api/deleteUserRole`,
			data: {
				roleIds: roleIdsStr
			},
		});
	},
	getClassRoleByFileId(fileId) {
		return request({
			url: `/file/api/getClassesRole`,
			data: {
				fileId: fileId
			}
		})
	},
	deleteClassFileRoleByFileIdList(roleIdList) {
		// 构建请求参数
		const roleIdsStr = roleIdList.join(',');
		console.log("roleIdsStr----->", roleIdsStr)
		return request({
			url: `/file/api/deleteClassesRole`,
			data: {
				roleIds: roleIdsStr
			},
		});
	},
}
